Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setup check to verify that the used DB version is still supported… #25016

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

MorrisJobke
Copy link
Member

… in the next major release

@MorrisJobke
Copy link
Member Author

See nextcloud/documentation#5895


public function check() {
switch (get_class($this->connection->getDatabasePlatform())) {
case MySQL80Platform::class: # extends MySQL57Platform
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left all the platforms in here to have the full overview (except DB2 or MSSQLServer as we don't support them at all)

@rullzer rullzer mentioned this pull request Jan 7, 2021
5 tasks
@MorrisJobke MorrisJobke force-pushed the enh/noid/add-check-for-unsupported-db branch 2 times, most recently from ff94601 to 58adf13 Compare January 7, 2021 19:53
@MorrisJobke
Copy link
Member Author

Ready for review :)

@MorrisJobke MorrisJobke force-pushed the enh/noid/add-check-for-unsupported-db branch from 58adf13 to 834d8a5 Compare January 7, 2021 21:03
@MorrisJobke
Copy link
Member Author

/backport to stable20

$version = strtolower($row['Value']);

if (strpos($version, 'mariadb') !== false) {
if (version_compare($version, '10.4', '<')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (version_compare($version, '10.4', '<')) {
if (version_compare($version, '10.2', '<')) {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our docs say, that 10.2 works and CI runs against 10.1 🙈

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to 10.2 for now. We can raise it later again, okay?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10.2 is still supported so yeah :)

… in the next major release

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke MorrisJobke force-pushed the enh/noid/add-check-for-unsupported-db branch from 834d8a5 to bffa61f Compare January 8, 2021 12:38
@MorrisJobke
Copy link
Member Author

@rullzer @ChristophWurst Ready for review :)

@rullzer rullzer mentioned this pull request Jan 11, 2021
14 tasks
@MorrisJobke MorrisJobke mentioned this pull request Jan 11, 2021
1 task
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
But didn't test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants